package com.suncaper.tddmall.common.model;

import java.math.BigDecimal;

public class Cart extends CartKey {
    private BigDecimal ttMoney;

    private Integer goodsNum;

    private  Goods goods;
    public Cart() {
    }

    public Cart(BigDecimal ttMoney, Integer goodsNum,CartKey cartKey) {
        this.ttMoney = ttMoney;
        this.goodsNum = goodsNum;
        this.getUserId();
        this.getGoodsId();
    }

    public Cart(BigDecimal ttMoney, Integer goodsNum, Goods goods) {
        this.ttMoney = ttMoney;
        this.goodsNum = goodsNum;
        this.goods = goods;
    }

    public Cart(String userId, String goodsId, BigDecimal ttMoney, Integer goodsNum, Goods goods) {
        super(userId, goodsId);
        this.ttMoney = ttMoney;
        this.goodsNum = goodsNum;
        this.goods = goods;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public BigDecimal getTtMoney() {
        return ttMoney;
    }

    public void setTtMoney(BigDecimal ttMoney) {
        this.ttMoney = ttMoney;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }
}